package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Data
@Table(name = "trade_d")
@ApiModel(value = "TradeDEntity", description = "四级分类")
@DynamicInsert
@DynamicUpdate
public class TradeDEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "一级分类")
    @Column(name = "trade_a")
    private String tradeA;

    @ApiModelProperty(value = "二级分类")
    @Column(name = "trade_b")
    private String tradeB;

    @ApiModelProperty(value = "二级分类")
    @Column(name = "trade_c")
    private String tradeC;
}
